﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IFTRUE.EIMS.Web.Aspx
{
    public partial class EnterpriseSet : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            qyjbqk.Visible = false;
            qyryqktj.Visible = false;
            zsqktj.Visible = false;
            qyscxkzjcpzczqk.Visible = false;
            qyzscqqktj.Visible = false;
            qyqjyskjxmqk.Visible = false;
            qyjdtj.Visible = false;
            qyjjgk.Visible = false;
            qyxstj.Visible = false;
            qyxqjjy.Visible = false;

            if (!IsPostBack)
            {
                Model.EnterpriseInfo enterpriseInfoModel = new BLL.EnterpriseInfo().Get(MySession.CurrentUser.Id);
                if (enterpriseInfoModel == null)
                    return;
                switch (Request["ids"])
                {
                    case "qyjbqk":
                        Tbr.Value = enterpriseInfoModel.Tbr;
                        Lxdh.Value = enterpriseInfoModel.Lxdh;
                        Yx.Value = enterpriseInfoModel.Yx;
                        Qymc.Value = enterpriseInfoModel.Qymc;
                        Zczb.Value = enterpriseInfoModel.Zczb.ToString();
                        Zzhjzqk.Value = enterpriseInfoModel.Zzhjzqk;
                        Sfwgxjsqy.Checked = enterpriseInfoModel.Sfwgxjsqy;
                        Sfwlxsqy.Checked = enterpriseInfoModel.Sfwlxsqy;
                        qyjbqk.Visible = true;
                        break;
                    case "qyryqktj":
                        Yyyg_zrs.Value = enterpriseInfoModel.Yyyg_zrs.ToString();
                        Yyyg_dzys.Value = enterpriseInfoModel.Yyyg_dzys.ToString();
                        Yyyg_ss.Value = enterpriseInfoModel.Yyyg_ss.ToString();
                        Yyyg_bs.Value = enterpriseInfoModel.Yyyg_bs.ToString();
                        Yyyg_lxry.Value = enterpriseInfoModel.Yyyg_lxry.ToString();
                        Byxz_zrs.Value = enterpriseInfoModel.Byxz_zrs.ToString();
                        Byxz_dzys.Value = enterpriseInfoModel.Byxz_dzys.ToString();
                        Byxz_ss.Value = enterpriseInfoModel.Byxz_ss.ToString();
                        Byxz_bs.Value = enterpriseInfoModel.Byxz_bs.ToString();
                        Byxz_lxry.Value = enterpriseInfoModel.Byxz_lxry.ToString();
                        qyryqktj.Visible = true;
                        break;
                    case "zsqktj":
                        Ysqzsqk.Value = enterpriseInfoModel.Ysqzsqk;
                        Xsqzsqk.Value = enterpriseInfoModel.Xsqzsqk;
                        zsqktj.Visible = true;
                        break;
                    case "qyscxkzjcpzczqk":
                        Yhcpzczsl.Value = enterpriseInfoModel.Yhcpzczsl.ToString();
                        Byxsqcpzczsl.Value = enterpriseInfoModel.Byxsqcpzczsl.ToString();
                        Byxhdcpzczsl.Value = enterpriseInfoModel.Byxhdcpzczsl.ToString();
                        Sfyhscxkz.Checked = enterpriseInfoModel.Sfyhscxkz;
                        Scxkzbgqk.Value = enterpriseInfoModel.Scxkzbgqk;
                        Yhcpzczzsbh.Value = enterpriseInfoModel.Yhcpzczzsbh;
                        qyscxkzjcpzczqk.Visible = true;
                        break;
                    case "qyzscqqktj":
                        Yyzscq_sbqk_fmzl.Value = enterpriseInfoModel.Yyzscq_sbqk_fmzl.ToString();
                        Yyzscq_sbqk_syxxzl.Value = enterpriseInfoModel.Yyzscq_sbqk_syxxzl.ToString();
                        Yyzscq_sbqk_wgzl.Value = enterpriseInfoModel.Yyzscq_sbqk_wgzl.ToString();
                        Yyzscq_sbqk_rjzzq.Value = enterpriseInfoModel.Yyzscq_sbqk_rjzzq.ToString();
                        Yyzscq_sbqk_pct.Value = enterpriseInfoModel.Yyzscq_sbqk_pct.ToString();
                        Yyzscq_hpqk_fmzl.Value = enterpriseInfoModel.Yyzscq_hpqk_fmzl.ToString();
                        Yyzscq_hpqk_syxxzl.Value = enterpriseInfoModel.Yyzscq_hpqk_syxxzl.ToString();
                        Yyzscq_hpqk_wgzl.Value = enterpriseInfoModel.Yyzscq_hpqk_wgzl.ToString();
                        Yyzscq_hpqk_rjzzq.Value = enterpriseInfoModel.Yyzscq_hpqk_rjzzq.ToString();
                        Yyzscq_hpqk_pct.Value = enterpriseInfoModel.Yyzscq_hpqk_pct.ToString();
                        Yyzscq_gmgwzlsl.Value = enterpriseInfoModel.Yyzscq_gmgwzlsl.ToString();
                        Yyzscq_jshtjysl.Value = enterpriseInfoModel.Yyzscq_jshtjysl.ToString();
                        Yyzscq_jshtjye.Value = enterpriseInfoModel.Yyzscq_jshtjye.ToString();
                        Byxzzscq_sbqk_fmzl.Value = enterpriseInfoModel.Byxzzscq_sbqk_fmzl.ToString();
                        Byxzzscq_sbqk_syxxzl.Value = enterpriseInfoModel.Byxzzscq_sbqk_syxxzl.ToString();
                        Byxzzscq_sbqk_wgzl.Value = enterpriseInfoModel.Byxzzscq_sbqk_wgzl.ToString();
                        Byxzzscq_sbqk_rjzzq.Value = enterpriseInfoModel.Byxzzscq_sbqk_rjzzq.ToString();
                        Byxzzscq_sbqk_pct.Value = enterpriseInfoModel.Byxzzscq_sbqk_pct.ToString();
                        Byxzzscq_hpqk_fmzl.Value = enterpriseInfoModel.Byxzzscq_hpqk_fmzl.ToString();
                        Byxzzscq_hpqk_syxxzl.Value = enterpriseInfoModel.Byxzzscq_hpqk_syxxzl.ToString();
                        Byxzzscq_hpqk_wgzl.Value = enterpriseInfoModel.Byxzzscq_hpqk_wgzl.ToString();
                        Byxzzscq_hpqk_rjzzq.Value = enterpriseInfoModel.Byxzzscq_hpqk_rjzzq.ToString();
                        Byxzzscq_hpqk_pct.Value = enterpriseInfoModel.Byxzzscq_hpqk_pct.ToString();
                        Byxzzscq_gmgwzlsl.Value = enterpriseInfoModel.Byxzzscq_gmgwzlsl.ToString();
                        Byxzzscq_jshtjysl.Value = enterpriseInfoModel.Byxzzscq_jshtjysl.ToString();
                        Byxzzscq_jshtjye.Value = enterpriseInfoModel.Byxzzscq_jshtjye.ToString();
                        qyzscqqktj.Visible = true;
                        break;
                    case "qyqjyskjxmqk":
                        Ywcxmqk_qj_sl.Value = enterpriseInfoModel.Ywcxmqk_qj_sl.ToString();
                        Ywcxmqk_qj_zzje.Value = enterpriseInfoModel.Ywcxmqk_qj_zzje.ToString();
                        Zyxmqk_qj_sl.Value = enterpriseInfoModel.Zyxmqk_qj_sl.ToString();
                        Zyxmqk_qj_zzje.Value = enterpriseInfoModel.Zyxmqk_qj_zzje.ToString();
                        Byxzsqxmqk_qj_sl.Value = enterpriseInfoModel.Byxzsqxmqk_qj_sl.ToString();
                        Byxzsqxmqk_qj_zzje.Value = enterpriseInfoModel.Byxzsqxmqk_qj_zzje.ToString();
                        Byxzhpxmqk_qj_sl.Value = enterpriseInfoModel.Byxzhpxmqk_qj_sl.ToString();
                        Byxzhpxmqk_qj_zzje.Value = enterpriseInfoModel.Byxzhpxmqk_qj_zzje.ToString();
                        Ywcxmqk_shij_sl.Value = enterpriseInfoModel.Ywcxmqk_shij_sl.ToString();
                        Ywcxmqk_shij_zzje.Value = enterpriseInfoModel.Ywcxmqk_shij_zzje.ToString();
                        Zyxmqk_shij_sl.Value = enterpriseInfoModel.Zyxmqk_shij_sl.ToString();
                        Zyxmqk_shij_zzje.Value = enterpriseInfoModel.Zyxmqk_shij_zzje.ToString();
                        Byxzsqxmqk_shij_sl.Value = enterpriseInfoModel.Byxzsqxmqk_shij_sl.ToString();
                        Byxzsqxmqk_shij_zzje.Value = enterpriseInfoModel.Byxzsqxmqk_shij_zzje.ToString();
                        Byxzhpxmqk_shij_sl.Value = enterpriseInfoModel.Byxzhpxmqk_shij_sl.ToString();
                        Byxzhpxmqk_shij_zzje.Value = enterpriseInfoModel.Byxzhpxmqk_shij_zzje.ToString();
                        Ywcxmqk_shengj_sl.Value = enterpriseInfoModel.Ywcxmqk_shengj_sl.ToString();
                        Ywcxmqk_shengj_zzje.Value = enterpriseInfoModel.Ywcxmqk_shengj_zzje.ToString();
                        Zyxmqk_shengj_sl.Value = enterpriseInfoModel.Zyxmqk_shengj_sl.ToString();
                        Zyxmqk_shengj_zzje.Value = enterpriseInfoModel.Zyxmqk_shengj_zzje.ToString();
                        Byxzsqxmqk_shengj_sl.Value = enterpriseInfoModel.Byxzsqxmqk_shengj_sl.ToString();
                        Byxzsqxmqk_shengj_zzje.Value = enterpriseInfoModel.Byxzsqxmqk_shengj_zzje.ToString();
                        Byxzhpxmqk_shengj_sl.Value = enterpriseInfoModel.Byxzhpxmqk_shengj_sl.ToString();
                        Byxzhpxmqk_shengj_zzje.Value = enterpriseInfoModel.Byxzhpxmqk_shengj_zzje.ToString();
                        Ywcxmqk_gjj_sl.Value = enterpriseInfoModel.Ywcxmqk_gjj_sl.ToString();
                        Ywcxmqk_gjj_zzje.Value = enterpriseInfoModel.Ywcxmqk_gjj_zzje.ToString();
                        Zyxmqk_gjj_sl.Value = enterpriseInfoModel.Zyxmqk_gjj_sl.ToString();
                        Zyxmqk_gjj_zzje.Value = enterpriseInfoModel.Zyxmqk_gjj_zzje.ToString();
                        Byxzsqxmqk_gjj_sl.Value = enterpriseInfoModel.Byxzsqxmqk_gjj_sl.ToString();
                        Byxzsqxmqk_gjj_zzje.Value = enterpriseInfoModel.Byxzsqxmqk_gjj_zzje.ToString();
                        Byxzhpxmqk_gjj_sl.Value = enterpriseInfoModel.Byxzhpxmqk_gjj_sl.ToString();
                        Byxzhpxmqk_gjj_zzje.Value = enterpriseInfoModel.Byxzhpxmqk_gjj_zzje.ToString();
                        Shxxjtlbjmc.Value = enterpriseInfoModel.Shxxjtlbjmc;
                        qyqjyskjxmqk.Visible = true;
                        break;
                    case "qyjdtj":
                        Zxjdqkhb.Value = enterpriseInfoModel.Zxjdqkhb;
                        qyjdtj.Visible = true;
                        break;
                    case "qyjjgk":
                        Qyndzsr.Value = enterpriseInfoModel.Qyndzsr.ToString();
                        Qybyxzsr.Value = enterpriseInfoModel.Qybyxzsr.ToString();
                        Qyndjlr.Value = enterpriseInfoModel.Qyndjlr.ToString();
                        Qybyxzjlr.Value = enterpriseInfoModel.Qybyxzjlr.ToString();
                        Qyndrdtr.Value = enterpriseInfoModel.Qyndrdtr.ToString();
                        Qybyzxrdtr.Value = enterpriseInfoModel.Qybyzxrdtr.ToString();
                        Qyckch.Value = enterpriseInfoModel.Qyckch.ToString();
                        Qysjsjsf.Value = enterpriseInfoModel.Qysjsjsf.ToString();
                        qyjjgk.Visible = true;
                        break;
                    case "qyxstj":
                        Bndmqywcxs.Value = enterpriseInfoModel.Bndmqywcxs.ToString();
                        Bndyjsxxs.Value = enterpriseInfoModel.Bndyjsxxs.ToString();
                        Qyzjwyczjxsyy.Value = enterpriseInfoModel.Qyzjwyczjxsyy;
                        qyxstj.Visible = true;
                        break;
                    case "qyxqjjy":
                        Zpxq.Value = enterpriseInfoModel.Zpxq;
                        Pxxq.Value = enterpriseInfoModel.Pxxq;
                        Qtxqjjy.Value = enterpriseInfoModel.Qtxqjjy;
                        qyxqjjy.Visible = true;
                        break;
                }
                form1.Action = form1.Action + Request["ids"];
            }
        }
    }
}